﻿using System;
using Microsoft.Xna.Framework.Input;

using Main.src.display;
using Main.src.input;
using Main.src.util;

namespace Main.src.scene
{
    /// <summary>
    /// Cena de game over
    /// </summary>
    public sealed class Scene_GameOver : Scene_Base
    {
        Sprite textura = new Sprite();
        /// <summary>
        /// Cria os objetos da cena
        /// </summary>
        public override void Start()
        {
            textura.Texture = Cache.GetTexture("TSelecao");
        }

        /// <summary>
        /// Atualiza os objetos da cena
        /// </summary>
        public override void Update()
        {
            if (Input.Trigger(Keys.Enter))
            {
                Scene.Set(new Scene_Game());
            }

        }

        /// <summary>
        /// Destrói os objetos da cena
        /// </summary>
        public override void Terminate()
        {
            textura.Dispose();
        }
    }
}
